
import lejos.nxt.Motor;
import lejos.nxt.SensorPort;
import lejos.nxt.UltrasonicSensor;
import lejos.robotics.navigation.Pilot;
import lejos.robotics.navigation.TachoPilot;

public abstract class RobotMoving {

	private static final float WHEEL_DIAMETER = 2.6f;
	private static final float TRACK_WIDTH = 5.5f;

	private static boolean hitWall = false;
	private static boolean byWall = false;


	public Pilot pilot = new TachoPilot(WHEEL_DIAMETER, TRACK_WIDTH, Motor.A, Motor.B);
	public UltrasonicSensor wallSensor = new UltrasonicSensor(SensorPort.S2);

	public float getWheelDiameter() {
		return WHEEL_DIAMETER;
	}

	public boolean byWall() {
		return byWall;
	}
	
	public void setByWall(boolean byWall) {
		RobotMoving.byWall = byWall;
	}
}
